package com.dlc.shop.seckill.common.service;

import com.dlc.shop.bean.app.dto.ShopCartOrderMergerDto;

/**
 * 秒杀订单
 *
 * @author LGH
 * @date 2019-08-28 09:36:59
 */
public interface SeckillOrderService {

    /**
     * 提交订单返回订单号
     * @param dto
     * @return
     */
    String submit(ShopCartOrderMergerDto dto);

    /**
     * 取消超时订单未支付订单
     */
    void cancelOrderUnpayOrderByTime();

    /**
     * 取消未支付订单
     * @param orderNumber
     */
    void cancelUnpayOrderByOrderNumber(String orderNumber);
}
